<?php
/**
 * Elgg logout action
 *
 * @package Elgg
 */


global $CONFIG, $messages, $vars;

require_once(dirname(dirname(dirname(__FILE__))).'/lib/lib.php');

$config = elgg_get_plugin_from_id('cas_auth');
// Log out
$result = logout();
$result = logoutCAS($config,elgg_get_site_url());
register_error(elgg_echo('logouterror'));
